
import httpRequest from '@/utils/httpRequest'
import constant from '../constant'

export function pageList (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/page',
    method: 'post',
    data: data
  })
}
export function listFlow (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/list',
    method: 'post',
    data: data
  })
}
export function getInfo (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/get',
    method: 'post',
    data: data
  })
}
export function del (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/del',
    method: 'post',
    data: data
  })
}
export function saveFlow (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/save',
    method: 'post',
    data: data
  })
}
export function judgeFlow (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/judgeFlow',
    method: 'post',
    data: data
  })
}


export function updateFlow (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/update',
    method: 'post',
    data: data
  })
}
export function listFlowInfosByEntity (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/listFlowInfosByEntity',
    method: 'post',
    data: data
  })
}

export function listFlowData(data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/findFlowIdentify',
    method: 'post',
    data: data
  })
}

export function getByIdentify (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/getByIdentify',
    method: 'post',
    data: data
  })
}
export function getMethodName (data) {
  return httpRequest({
    url: constant.DR + '/rule/flow/getMethodName',
    method: 'post',
    data: data
  })
}
